<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<!-- Copyright 1997 The Open Group, All Rights Reserved -->
<title>delta</title>
</head><body bgcolor=white>
<center>
<font size=2>
The Single UNIX &reg; Specification, Version 2<br>
Copyright &copy; 1997 The Open Group

</font></center><hr size=2 noshade>
<h4><a name = "tag_001_014_377">&nbsp;</a>NAME</h4><blockquote>
delta - make a delta (change) to an SCCS file (<b>DEVELOPMENT</b>)
</blockquote><h4><a name = "tag_001_014_378">&nbsp;</a>SYNOPSIS</h4><blockquote>
<pre><code>

delta <b>[</b>-nps<b>][</b>-g <i>list</i><b>][</b>-m <i>mrlist</i><b>][</b>-r <i>SID</i><b>][</b>-y<b>[</b><i>comment</i><b>]]</b><i> file</i>...
</code>
</pre>
</blockquote><h4><a name = "tag_001_014_379">&nbsp;</a>DESCRIPTION</h4><blockquote>
The
<i>delta</i>
utility
is used to permanently introduce into
the named SCCS files
changes that were made to the files retrieved by
<i><a href="get.html">get</a></i>
(called the
<i>g-files</i>,
or generated files).
</blockquote><h4><a name = "tag_001_014_380">&nbsp;</a>OPTIONS</h4><blockquote>
The
<i>delta</i>
utility supports the <b>XBD</b> specification, <a href="../xbd/utilconv.html#usg"><b>Utility Syntax Guidelines</b>&nbsp;</a> ,
except that the
<b>-y</b>
option has an optional option-argument.
This optional option-argument cannot be presented as a separate argument.
The following options are supported:
<dl compact>

<dt><b>-r&nbsp;</b><i>SID</i>
<dd>Uniquely identify which delta is to be made to the SCCS file.
The use of this option is necessary only if two or more
outstanding
<i><a href="get.html">get</a></i>
commands
for editing
(<i>get</i>
<b>-e</b>)
on the same SCCS file were done by the same person
(login name).
The SID value specified with the
<b>-r</b>
option can be either the SID specified on the
<i><a href="get.html">get</a></i>
command line or the SID to be made as reported by the
<i><a href="get.html">get</a></i>
utility; see
<i><a href="get.html">get</a></i>.

<dt><b>-s</b>
<dd>Suppress the report to standard output of the activity
associated with each
<i>file</i>.
See the STDOUT section.

<dt><b>-n</b>
<dd>Specify retention of the edited
<i>g-file</i>
(normally removed at completion of delta processing).

<dt><b>-g&nbsp;</b><i>list</i>
<dd>Specify a
<i>list</i>,
(see
<i><a href="get.html">get</a></i>
for the definition of
<i>list</i>)
of deltas that are to be
ignored when the file is accessed at the change level (SID)
created by this delta.

<dt><b>-m&nbsp;</b><i>mrlist</i>
<dd>
Specify a modification request (MR) number that
must be supplied as the reason for creating the new delta.
This is used if the SCCS file has the
<b>v</b>
flag set;
see
<i><a href="admin.html">admin</a></i>.

If
<b>-m</b>
is not used and the standard input is a terminal, the prompt
described in the STDOUT section
is written to standard output before the standard input
is read; if the standard input is not a terminal, no prompt is issued.

MRs in a list are separated by blanks.
An unescaped newline character terminates the MR list.

Note that if the
<b>v</b>
flag has a value,
it is taken to be the name of a program which will validate
the correctness of the MR numbers.
If a non-zero exit status is returned
from the MR number validation program,
<i>delta</i>
terminates.
(It is assumed that the MR numbers were not all valid.)

<dt><b>-y[</b><i>comment</i><b>]</b><dd>
Describe the reason for making the delta.
This is an arbitrary group of lines that
would meet the definition of a text file.
Systems support
<i>comment</i>s
from zero to 512 bytes and may support longer values.
A null string (specified as either
<b>-y</b>,
<b>-y""</b>
or in response to a prompt for a comment)
is considered a valid
<i>comment</i>.

If
<b>-y</b>
is not specified and the standard input is a terminal, the prompt
described in the STDOUT section
is written to standard output before the standard
input is read; if the standard input is not a terminal, no
prompt is issued.
An unescaped newline character terminates the comment text.

The
<b>-y</b>
option is required if the
<i>file</i>
operand is specified as -.


<dt><b>-p</b>
<dd>Write (to standard output) the SCCS file
differences before and after the delta is applied
in
<i><a href="diff.html">diff</a></i>
format; see
<i><a href="diff.html">diff</a></i>.

</dl>
</blockquote><h4><a name = "tag_001_014_381">&nbsp;</a>OPERANDS</h4><blockquote>
The following operands are supported:
<dl compact>

<dt><i>file</i><dd>A pathname of an existing SCCS file or a directory.
If
<i>file</i>
is a directory,
<i>delta</i>
behaves as though each file in the directory were
specified as a named file,
except that non-SCCS files
(last component of the pathname does not begin with
s.)
and unreadable files are silently ignored.

If a single instance
<i>file</i>
is specified as -,
the standard input is read;
each line of the standard input is taken to be the name of an SCCS file
to be processed.
Non-SCCS files and unreadable files are silently ignored.

</dl>
</blockquote><h4><a name = "tag_001_014_382">&nbsp;</a>STDIN</h4><blockquote>
The standard input is a text file used only in the following cases:
<ul>
<p>
<li>
A prompt is issued for the
<b>-m</b>
or
<b>-y</b>
options.
<p>
<li>
The
<i>file</i>
operand is specified as -.
<p>
</ul>
</blockquote><h4><a name = "tag_001_014_383">&nbsp;</a>INPUT FILES</h4><blockquote>
Input files are text files whose data is to be included
in the SCCS files.
If the first character of any line of an input file
is SOH (binary 001), the results are unspecified.
</blockquote><h4><a name = "tag_001_014_384">&nbsp;</a>ENVIRONMENT VARIABLES</h4><blockquote>
The following environment variables affect the execution of
<i>delta</i>:
<dl compact>

<dt><i>LANG</i><dd>Provide a default value for the internationalisation variables
that are unset or null.
If
<i>LANG</i>
is unset or null, the corresponding value from the
implementation-dependent default locale will be used.
If any of the internationalisation variables contains an invalid setting, the
utility will behave as if none of the variables had been defined.

<dt><i>LC_ALL</i><dd>
If set to a non-empty string value,
override the values of all the other internationalisation variables.

<dt><i>LC_CTYPE</i><dd>
Determine the
locale for the interpretation of sequences of bytes of text data as
characters (for example, single- as opposed to multi-byte characters
in arguments and input files).

<dt><i>LC_MESSAGES</i><dd>
Determine the locale that should be used to affect
the format and contents of diagnostic
messages written to standard error,
and informative messages written to standard output.

<dt><i>NLSPATH</i><dd>
Determine the location of message catalogues
for the processing of
<i>LC_MESSAGES .
</i>
</dl>
</blockquote><h4><a name = "tag_001_014_385">&nbsp;</a>ASYNCHRONOUS EVENTS</h4><blockquote>
Default.
<br>
</blockquote><h4><a name = "tag_001_014_386">&nbsp;</a>STDOUT</h4><blockquote>
The standard output is used only for the following
messages in the POSIX locale:
<ul>
<p>
<li>
Prompts (see the
<b>-m</b>
and
<b>-y</b>
options) in the following formats:
<pre>
<code>
"MRs?&nbsp;"

"comments?&nbsp;"
</code>
</pre>
<p>
The MR prompt, if written, always precedes the comments prompt.
<p>
<li>
A report of each
<i>file</i>'s
activities (unless the
<b>-s</b>
option is specified) in the following format:
<p><code>
<pre>
<tt>"%s\n%d inserted\n%d deleted\n%d unchanged\n"</tt>, &lt;<i>&lt;New SID&gt;,&lt;number of lines inserted&gt;, &lt;number of lines deleted&gt;</i>&gt;,
&lt;<i>&lt;number of lines unchanged&gt;</i>&gt;.
</pre>
</code>
<p>
</ul>
</blockquote><h4><a name = "tag_001_014_387">&nbsp;</a>STDERR</h4><blockquote>
Used only for diagnostic messages.
</blockquote><h4><a name = "tag_001_014_388">&nbsp;</a>OUTPUT FILES</h4><blockquote>
Any SCCS files updated are files of an unspecified format.
</blockquote><h4><a name = "tag_001_014_389">&nbsp;</a>EXTENDED DESCRIPTION</h4><blockquote>
None.
</blockquote><h4><a name = "tag_001_014_390">&nbsp;</a>EXIT STATUS</h4><blockquote>
The following exit values are returned:
<dl compact>

<dt>0<dd>Successful completion.

<dt>&gt;0<dd>An error occurred.

</dl>
</blockquote><h4><a name = "tag_001_014_391">&nbsp;</a>CONSEQUENCES OF ERRORS</h4><blockquote>
Default.
</blockquote><h4><a name = "tag_001_014_392">&nbsp;</a>APPLICATION USAGE</h4><blockquote>
None.
</blockquote><h4><a name = "tag_001_014_393">&nbsp;</a>EXAMPLES</h4><blockquote>
None.
</blockquote><h4><a name = "tag_001_014_394">&nbsp;</a>FUTURE DIRECTIONS</h4><blockquote>
A version of
<i>delta</i>
that fully supports the <b>XBD</b> specification, <a href="../xbd/utilconv.html#usg"><b>Utility Syntax Guidelines</b>&nbsp;</a>  may be
introduced in a future issue.
</blockquote><h4><a name = "tag_001_014_395">&nbsp;</a>SEE ALSO</h4><blockquote>
<i><a href="admin.html">admin</a></i>,
<i><a href="diff.html">diff</a></i>,
<i><a href="get.html">get</a></i>,
<i><a href="prs.html">prs</a></i>,
<i><a href="rmdel.html">rmdel</a></i>.
</blockquote><hr size=2 noshade>
<center><font size=2>
UNIX &reg; is a registered Trademark of The Open Group.<br>
Copyright &copy; 1997 The Open Group
<br> [ <a href="../index.html">Main Index</a> | <a href="../xshix.html">XSH</a> | <a href="../xcuix.html">XCU</a> | <a href="../xbdix.html">XBD</a> | <a href="../cursesix.html">XCURSES</a> | <a href="../xnsix.html">XNS</a> ]

</font></center><hr size=2 noshade>
</body></html>
